<!--Copyright (C) Kherty.  All rights reserved.-->
<Window
    x:Class="OpenLS.Chart.UI.PropertiesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals"
    ShowInTaskbar="False"
    SizeToContent="WidthAndHeight"
    MinHeight="300" MinWidth="300">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <chartui:AllChartPropertiesResources/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Window.CommandBindings>
        <CommandBinding Command="{x:Static ApplicationCommands.Close}" Executed="OnClose" />
    </Window.CommandBindings>
    <Window.InputBindings>
        <KeyBinding Key="Escape" Command="{x:Static ApplicationCommands.Close}" />
    </Window.InputBindings>
    <DockPanel>
        <Button DockPanel.Dock="Bottom" Content="{x:Static Internals:UIStringTable.Close}" Click="Button_Click" HorizontalAlignment="Right">
            <Button.Style>
                <Style TargetType="{x:Type Button}">
                    <Setter Property="Margin" Value="5"/>
                    <Setter Property="MinWidth" Value="74"/>
                    <Setter Property="MinHeight" Value="24"/>
                </Style>

            </Button.Style>
        </Button>
        <ContentControl Content="{Binding}" Margin="3" />
    </DockPanel>
</Window>
